/**
 * 
 */
package javas.utils;

import java.io.File;
import java.util.StringTokenizer;

/**
 * TestStringTokenizer.java. 2011-11-26上午11:39:41 @author LionBule.
 */
public class TestStringTokenizer {

    /**
     * @param args
     */
    public static void main(String[] args) {
        String str = "1;2;3;4;5;6";
        StringTokenizer st = new StringTokenizer(str, File.pathSeparator);
        
        while(st.hasMoreTokens()){
            System.out.println(st.nextToken());
        }
    }

}
